﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="recipientsapplist.aspx.cs"
    Inherits="LabMS.Web.Equipment.common.recipientsapplist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>借出申请列表</title>
    <link type="text/css" rel="stylesheet" href="../../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../../style/ie7.css" />
    <![endif]-->

    <script src="../../js/calendar5.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../js/Common.js"></script>

    <script type="text/javascript">
        var c = new Calendar("c");
        document.write(c);
    </script>

</head>
<body class="mainBody">
    <form id="form1" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        借出申请列表</label>
                </div>
            </div>
        </div>
        <div class="main">
            <p>
                <asp:Label ID="lbErr" runat="server" ForeColor="Red" Text="Err" Visible="False"></asp:Label>
                <asp:Label ID="lbSearch" runat="server" Text="0" Visible="False"></asp:Label>
                <asp:TextBox ID="tbEType" Visible="false" runat="server"></asp:TextBox>
            </p>
            <p>
                <% if (UserType == "teacher")
                   {%>
                <input id="btAddRecipientApp" type="button" onclick="RedirectURL(window, 'recipientsapplication.aspx');"
                    value="添加借出申请" class="button" />
                <%} %>
            </p>
            <p>
                耗材名称:<asp:TextBox ID="tbCName" runat="server"></asp:TextBox>
                <asp:Label Visible="false" ID="Label1" runat="server" Text="Label">领用类型:</asp:Label>
                <asp:DropDownList Visible="false" ID="ddlEType" runat="server">
                    <asp:ListItem Text="消耗品" Value="xiaohaopin"></asp:ListItem>
                    <asp:ListItem Text="低值品" Value="lowvalue"></asp:ListItem>
                    <asp:ListItem Text="仪器" Value="yiqi"></asp:ListItem>
                    <asp:ListItem Text="贵重仪器" Value="guizhongyiqi"></asp:ListItem>
                </asp:DropDownList>
                申请时间:<asp:TextBox ID="tbTime1" runat="server"></asp:TextBox>--<asp:TextBox ID="tbTime2"
                    runat="server"></asp:TextBox>
                状态:
                <asp:DropDownList ID="ddlState" runat="server">
                    <asp:ListItem Text="" Value="-1"></asp:ListItem>
                    <asp:ListItem Text="未申请" Value="0"></asp:ListItem>
                    <asp:ListItem Text="审核中" Value="1"></asp:ListItem>
                    <asp:ListItem Text="已批准(不通过)" Value="2"></asp:ListItem>
                    <asp:ListItem Text="已批准(通过)" Value="3"></asp:ListItem>
                </asp:DropDownList>
            </p>
            <p>
                申请领用时间:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>--<asp:TextBox ID="TextBox2"
                    runat="server"></asp:TextBox>
                <% if (UserType == "mana")
                   {%>
                申请人:<asp:TextBox Visible="false" ID="tbUPerson" runat="server"></asp:TextBox>
                <%} %>
                领用仓库:
                <asp:DropDownList ID="ddlWarehouse" runat="server">
                </asp:DropDownList>
                <asp:Button ID="btSearch" runat="server" Text="搜索" OnClick="btSearch_Click" CssClass="button" />
                <asp:Button ID="btReset" runat="server" Text="重置" OnClick="btReset_Click" CssClass="button" />
            </p>
        </div>
        <div class="main">
            <asp:GridView ID="GridViewrapp" runat="server" Width="100%" PageSize="15" AllowPaging="true"
                DataKeyNames="ID" AutoGenerateColumns="False" OnRowDataBound="GridViewrapp_RowDataBound"
                OnPageIndexChanging="GridViewrapp_PageIndexChanging" CssClass="infoTable">
                <Columns>
                    <asp:BoundField DataField="Name" HeaderText="耗材名称" />
                    <asp:BoundField DataField="Type" HeaderText="类型" />
                    <asp:BoundField DataField="ClassNumber" HeaderText="编号" />
                    <asp:BoundField DataField="MRecipients" HeaderText="申请人" />
                    <asp:BoundField DataField="Laboratory" HeaderText="实验室" />
                    <asp:BoundField DataField="AppTime" HeaderText="申请时间" DataFormatString="{0:yyyy/MM/dd}"
                        HtmlEncode="false" />
                    <asp:BoundField DataField="RecipientTime" HeaderText="预订领用时间" DataFormatString="{0:yyyy/MM/dd}"
                        HtmlEncode="false" />
                    <asp:BoundField DataField="EncodedWarehouse" HeaderText="领用仓库" />
                    <asp:BoundField DataField="AppNub" HeaderText="申请数量" DataFormatString="{0:N2}" />
                    <asp:BoundField DataField="State" HtmlEncode="false" HeaderText="状态" DataFormatString="{0:N2}" />
                </Columns>
                <HeaderStyle CssClass="header" />
                <RowStyle HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    <a style="color: Red">无数据</a>
                </EmptyDataTemplate>
            </asp:GridView>
        </div>
    </form>

    <script type="text/javascript" src="../../js/jQuery/jquery-1.3.1.js"></script>

    <script type="text/javascript" src="../../js/site.js"></script>

    <script type="text/javascript">

        $(function(){
            /* 修改样式 */
            $("#GridViewRConsum > tbody > tr:even").not(":first").addClass("even");
            $("#GridViewRConsum > tbody > tr").not(":first")
                .hover(
                    function(){
                        $(this).addClass("hover");
                    },
                    function(){
                        $(this).removeClass("hover");
                });
        });
    </script>

</body>
</html>
